package com.baizhi.entity;

public class Book {
    private Integer bookId;
    private String bookName;
    private Double bookPrice;
    private Integer salenum;
    private Double customeScore;
    private String productImage;

    private Category cate;

    public Book(Integer bookId, String bookName, Double bookPrice, Integer salenum, Double customeScore, String productImage, Category cate) {
        this.bookId = bookId;
        this.bookName = bookName;
        this.bookPrice = bookPrice;
        this.salenum = salenum;
        this.customeScore = customeScore;
        this.productImage = productImage;
        this.cate = cate;
    }

    public Book() {
    }

    public Integer getBookId() {
        return bookId;
    }

    public void setBookId(Integer bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public Double getBookPrice() {
        return bookPrice;
    }

    public void setBookPrice(Double bookPrice) {
        this.bookPrice = bookPrice;
    }

    public Integer getSalenum() {
        return salenum;
    }

    public void setSalenum(Integer salenum) {
        this.salenum = salenum;
    }

    public Double getCustomeScore() {
        return customeScore;
    }

    public void setCustomeScore(Double customeScore) {
        this.customeScore = customeScore;
    }

    public String getProductImage() {
        return productImage;
    }

    public void setProductImage(String productImage) {
        this.productImage = productImage;
    }

    public Category getCate() {
        return cate;
    }

    public void setCate(Category cate) {
        this.cate = cate;
    }

    @Override
    public String toString() {
        return "Book{" +
                "bookId=" + bookId +
                ", bookName='" + bookName + '\'' +
                ", bookPrice=" + bookPrice +
                ", salenum=" + salenum +
                ", customeScore=" + customeScore +
                ", productImage='" + productImage + '\'' +
                ", cate=" + cate +
                '}';
    }
}
